﻿@using System.Globalization
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/theme/start/app.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/global.min.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/lib/jquery.json.min.js")" type="text/javascript"></script>
    @{
        var lang = Request.UserLanguages != null ? Request.UserLanguages[0] : "en";

        if (!lang.StartsWith("en"))
        {
            var url = "~/Scripts/lib/jquery-ui/i18n/ui.datepicker-" + lang + ".js";
        <script src="@Url.Content(url)" type="text/javascript"></script>
        }
    }
    @RenderSection("header", false)
    <!--[if lte IE 7]>
<style type="text/css">html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
</style>
<![endif]-->
</head>
<body>
    <div id="ajaxErrorMessage" style="display: none;">
    </div>
    <div id="progressbar">
        <div>
        </div>
    </div>
    <div class="page">
        <div id="mainMenu" class="jqueryslidemenu">
            @Html.Partial("MainMenu")
            <div style="clear: both">
            </div>
        </div>
        <div id="header">
            <h1 id="title">
                Orament</h1>
            <div id="userInfo">
                @Html.Partial("LogOnUserControl")
            </div>
            <div style="clear: both">
            </div>
        </div>
        <div id="main">
            <h2 class="subject">
                @RenderSection("PageTitle", false)
            </h2>
            <hr style="margin: 5px 0px" />
            @RenderBody()
        </div>
        <div id="footer">
            <div style="float: left">
                Ornament Framework 0.8
            </div>
            <div style="float: left; margin-left: 10px">
                Thanks for <a href="http://dryicons.com">DryIcons</a>
            </div>
            <div style="clear: both">
            </div>
        </div>
    </div>
</body>
</html>
